﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Dev.Control;

namespace ExpBillMain.form
{
    public partial class frmAreaAdd : BaseFormDev
    {
        public string sAreaName = string.Empty;

        public frmAreaAdd()
        {
            InitializeComponent();
        }

        private void tsbExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void tsbStart_Click(object sender, EventArgs e)
        {
            this.sAreaName = txtAreaName.Text.Trim();
            this.Close();
        }

        private void txtAreaName_KeyPress(object sender, KeyPressEventArgs e)
        {
            //if(e.KeyChar== 
        }

        private void txtAreaName_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                this.sAreaName = txtAreaName.Text.Trim();
                this.Close();
            }
        }


    }
}
